package com.atguigu.srb.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ChallengeTable对象",description = "社团挑战表")
public class ChallengeTable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "挑战ID", required = true)
    @TableId(value = "challenge_id", type = IdType.AUTO)
    private int challengeId;

    @ApiModelProperty(value = "发起社团编号", required = true)
    private String initiatingClubNumber;

    @ApiModelProperty(value = "应战社团编号", required = true)
    private String respondingClubNumber;

    @ApiModelProperty(value = "挑战标题", required = true)
    private String title;

    @ApiModelProperty(value = "挑战描述")
    private String challengeDescription;

    @ApiModelProperty(value = "开始时间", required = true)
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "挑战规则")
    private String rules;

    @ApiModelProperty(value = "挑战状态(待确认，已接受，不接受)", required = true)
    private String status;

    @ApiModelProperty(value = "胜利社团")
    private String winningClubNumber;

    @ApiModelProperty(value = "挑战创立时间", required = true)
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
